#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
bool check(int x)
{
    for (int i = 2; i <= x / i; i++)
    {
        if (x % i == 0) return false;
    }
    return true;
}
int main(int argc, char* argv[])
{
    int i = 2, count = 1;
    while (count < 2025)
    {
        i++;
        if (check(i))
        {
            count++;
        }
    }
    printf("%d", i);
    return 0;
}